﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Novell.DirectoryServices.Linq
{

    /// <summary>
    /// Specifies additional search options.
    /// </summary>
    [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1019:DefineAccessorsForAttributeArguments"), AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
    public sealed class DirectorySearchOptionsAttribute : Attribute
    {
        #region Constructors

        /// <summary>
        /// Creates a new search options attribute.
        /// </summary>
        /// <param name="scope">Search scope.</param>
        public DirectorySearchOptionsAttribute(SearchScope scope)
        {
            Scope = scope;
        }

        #endregion

        #region Properties

        /// <summary>
        /// Search scope.
        /// </summary>
        public SearchScope Scope { get; private set; }

        #endregion
    }
}
